package com.financing.wap.dao;

import java.sql.SQLException;

import com.financing.wap.dto.MessageJpushDTO;
import com.financing.wap.dto.MessageJpushUserPhoneAliasDTO;
import com.financing.wap.dto.OrderDTO;

/**
 * 极光推送用户手机别名绑定
 * @author qiye
 *
 */
public interface IMessageJpushUserPhoneAliasDao extends IBaseDao<MessageJpushUserPhoneAliasDTO, Integer> {
	/**
	 * 查询用户极光推送绑定手机别名
	 * @param fpUserId
	 * @return
	 * @throws SQLException
	 */
	public MessageJpushUserPhoneAliasDTO queryMessageJpushUserPhoneAlias(String fpUserId) throws SQLException;

	/**
	 * 更新用户极光推送绑定手机别名
	 * @param dto
	 * @return
	 * @throws SQLException
	 */
	public int updateMessageJpushUserPhoneAlias(MessageJpushUserPhoneAliasDTO dto) throws SQLException;

	/**
	 * 添加用户极光推送绑定手机别名
	 * @param dto
	 * @return
	 * @throws SQLException
	 */
	public int addMessageJpushUserPhoneAlias(MessageJpushUserPhoneAliasDTO dto) throws SQLException;

	public MessageJpushUserPhoneAliasDTO queryMessageJpushUserPhoneAlias(MessageJpushUserPhoneAliasDTO dto)throws SQLException;

	/**
	 * 添加极光推送消息
	 * @param dto
	 * @return
	 * @throws SQLException
	 */
	public int addJpushMessage(MessageJpushDTO dto) throws SQLException;

}
